//
//  TYZAreaPickerView.h
//  DriveSchoolCoach
//
//  Created by TangBin on 2019/8/7.
//  Copyright © 2019 TangBin. All rights reserved.
//

#import "TYZBaseView.h"

NS_ASSUME_NONNULL_BEGIN


#define kTYZAreaPickerViewHeight (216 + 44)

typedef enum
{
    TYZAreaPickerWithStateAndCity = 0,
    TYZAreaPickerWithStateAndCityAndDistrict
} TYZAreaPickerStyle;

@interface TYZAreaModel : NSObject
@property (nonatomic, copy) NSString *state; ///< 省份
@property (nonatomic, copy) NSString *city; ///< 城市
@property (nonatomic, copy) NSString *district; ///< 区
@end


@interface TYZAreaPickerView : UIView

- (instancetype)initWithFrame:(CGRect)frame pickerStyle:(TYZAreaPickerStyle)pickerStyle autoSelected:(BOOL)autoSelected;

/**
 返回日期
 */
@property (nonatomic, copy) void(^touchDateBlock)(TYZAreaModel *model);

- (void)show;
- (void)hide;
@end

NS_ASSUME_NONNULL_END
